import { DateHelper } from 'major-schedulerpro'
// 格式化日期
export const formatDate = (date) => {
  return DateHelper.format(date, 'YYYY年MM月D日')
}
/**
 * 添加事件
 * @param {Array | Object} events 数组或者object类型
 */
export const addEvents = (scheduler, events) => {
  !Array.isArray(events) && (events = [events])
  console.log(scheduler)
  scheduler.eventStore.add(events)
}
